
valora = input()
valorb = input()


def imposto(x, y):
    final = x*y
    final += x
    print final

imposto(valora, valorb)